; 'GTD Lighting GTD-1200 Spot Standard,16 DMX', 16 DMX Channels, filename: GTD-1200.R20
;  Copyright ?Avolites Ltd. 2016
;
;   Date       By                Description
;   11-09-16   Huamin Zhang      Created
;   05-12-16   Pers Creator      Created - Exported from Diamond 4 file.
;
;----------------------------------------------------------------------------
; The device name, upto 11 characters, no spaces are allowed
DEVICE  G1200SpS                            mode=Standard,18 DMX  16 DMX Channels
NAME "GTD Lighting" "GTD-1200 Spot Standard,16 DMX"
;
;----------------------------------------------------------------------------
; The Type of instrument, 1 & M must required for backward compatibility
; The middle number denotes the number of DMX channels used
TYPE  1  16  M
;
;----------------------------------------------------------------------------
; Mirror/Head resolution
MIRROR  2   540  270
;       |    |    |
;       |    |    |_______ maximum tilt movement (in degrees)
;       |    |____________ maximum pan movement (in degrees)
;       |_________________ 1 means moving mirror, 2 means moving head
;
;----------------------------------------------------------------------------
; Patching Information. (Upto 10 lines allowed)
; Upto 10 lines of 159 chars are allowed including formulae
; Variables used d=dmx number(1..512), h=handle(1..60), n=devicename (11-char)
; Allowed modifiers
;   +,-,*,/,(,) basic arithmatic
;   % means remainder after divide
;   & means logical AND
;   | means logical OR
;   R means reverse the bits of the current result (operates on a byte)
;   ^ means logical Exclusive OR (operates on a byte)
;   > means shift to the right
;   < shift to the left
;   r followed by number means get the value of that parameter
;   d DMX address
;   n Fixture name, a 0 terminated character string
;   h The handle number
DEVICEADDRESS
"Handle  %2d"h
"Fixture %11s"n
"DMX     %03d"d
""
""
"Set to Standard,16 DMX"
""
""
DAEND
;
;----------------------------------------------------------------------------
; Specify DMX limits
;
; minimum allowed dmx number
MINDMX=1
;
; maximum allowed dmx number
MAXDMX=496
;
; DMX number must be divisible by this
DIVBY=1
;
;----------------------------------------------------------------------------
; DMX channel description
;
; Column by column description of each DMX channel
; 1. The channels bank number (1..20)
; 2. The upper faders in the bank (1) or the lower faders in the bank (61)
; 3. Channel type (L=LTP, H=HTP, I=Instant LTP, S=16-bit instant LTP,
;    s=16-bit Fadeable LTP
; 4. DMX offset (1..number of DMX channels)
; 5. The output level is proportionally reduced by this level (0..100%)
; 6. The curve number (applicable only to HTP channels), usually set to 1
; 7. Inverted (I) or Normal (N)
; 8. Attribute type (A=Colour Wheel 1, B=Cyan, C=Magenta, D=Yellow,
;         E=Pan, F=Tilt, G=Iris, H=Dimmer, I=Gobo1, J=Gobo2, K=Gobo1 Rotate,
;         L=Focus, M=Gobo2 Rotate, N=Colour Wheel 2, O=Shutter, P=Prism, Q=Zoom,
;         R=Effect Rotate, S=Frost, T=Red, U=Green, V=Blue, 0=uncategorised)
; 9. Checksum channel (Always 1)
;10. Attribute name, must be enclosed in quotes and upto 12 characters allowed
;11. The ON value of this channel (0..255)
;12. The Highlight level of this channel
;13. The Lowlight level of this channel
;
DMX
2    61   L    1   100   1N   O   1   "Shutter"          48     0     0
1     1   H    2   100   1N   H   1   "Dimmer"          255     0     0
0     0   L    3   100   1N   H   1   "Dimmer Fine"     255     0     0 
4     1   I    4   100   1N   A   1   "Colour"            8     0     0
6     1   I    5   100   1N   I   1   "Gobo 1"            8     0     0
6    61   I    6   100   1N   J   1   "Gobo 2"            4     0     0
7    61   L    7   100   1N   M   1   "Gobo 2 Rot"        0     0     0
5    61   L    8   100   1N   L   1   "Focus"           128     0     0
5     1   L    9   100   1N   Q   1   "Zoom"            128     0     0
9     1   L   10   100   1N   S   1   "Frost"            16     0     0
3    61   s   11   100   1N   E   1   "Pan"              84     0     0
0     0   L   12   100   1N   E   1   "Pan Low"          84     0     0
3     1   s   13   100   1N   F   1   "Tilt"            128     0     0
0     0   L   14   100   1N   F   1   "Tilt Low"        128     0     0
10    1   L   15   100   1N   0   1   "P/T Speed"         0     0     0
10   61   L   16   100   1N   0   1   "Control"           4     0     0
END
;
;----------------------------------------------------------------------------
TEXT
GTD Lighting
GTD-1200 Spot
Standard,16 DMX

INPUT fixture DMX No.
Press a Fixture
Select or Swop button
to make the patch.
END

ATTR
Function Obsolete
END

;----------------------------------------------------------------------------
; Macros

MACRO "Lamp On"       1  16
"data"                0   E
"delay"               1  46
"data"                0   4
MEND

MACRO "Lamp Off"      2  16
"data"                0  18
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset All"     3  16
"data"                0  40
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset P/T"     4  16
"data"                0  4A
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset Colour"  5  16
"data"                0  54
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset Gobo"    6  16
"data"                0  5E
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset Shutter"  7  16
"data"                0  68
"delay"               1  46
"data"                0   4
MEND

MACRO "Reset Other"   8  16
"data"                0  72
"delay"               1  46
"data"                0   4
MEND